package gases.as3.librarys.components.ui
{
	import flash.utils.Dictionary;
	
	import gases.as3.librarys.components.skin.data.BaseSkin;
	import gases.as3.librarys.core.display.GDisplayContainer;
	
	public class GUIComponents extends GDisplayContainer
	{
		public function GUIComponents()
		{
			initialization();
		}
		
		public function set skin(value:BaseSkin):void
		{
			_skin = value;
		}
		
		public function get skin():BaseSkin
		{
			return _skin;
		}
		
		/**
		 * 组件初始化 
		 * 
		 */		
		protected function initialization():void
		{
			this.mouseEnabled = false;
		}
		
		/**
		 * 刷新皮肤
		 * 
		 */		
		public function render():void
		{
			
		}
		
		/**
		 * 重置所有属性 
		 * 
		 */		
		public function restart():void
		{
			
		}
		
		/**
		 * 组件标识ID
		 * @return 
		 * 
		 */		
		public function get id():String
		{
			return _id;	
		}
		
		/**
		 * 组件标识ID
		 * @param value
		 * 
		 */		
		public function set id(value:String):void
		{
			_id = value;
		}
		/**
		 * 组件标识名字
		 * @return 
		 * 
		 */		
		public function get componentName():String
		{
			return _componentName;	
		}
		
		/**
		 * 组件标识名字
		 * @param value
		 * 
		 */		
		public function set componentName(value:String):void
		{
			_componentName = value;
		}
		
		override public function dispose():void
		{
			_skin = null;
			super.dispose();
		}
		
		/**
		 * 设置组件类型, 例如是:BUTTON等, 预留为了调试等 
		 * @param value
		 * 
		 */		
		public function set comepmentType(value:String):void
		{
			_comepmentType = value;
		}
		
		/**
		 * 设置组件类型, 例如是:BUTTON等, 预留为了调试等
		 * @return 
		 * 
		 */		
		public function get comepmentType():String
		{
			return _comepmentType;
		}
		
		public function set layerLevel(value:int):void
		{
			_layerLevel = 1;
		}
		
		public function get layerLevel():int
		{
			return _layerLevel;
		}
		private var _skin:BaseSkin;
		private var _id:String;
		private var _componentName:String;
		private var _comepmentType:String = "";
		private var _layerLevel:int = 1;
	}
}




